<div id="page">
    <ul id="slider">
        <?php
            $sanpham = new sanphambs();
            $danhsach = $sanpham->GetList_New();
            for($i = 0; $i < ($danhsach == false ? 0 : 5) ; $i++)
            {
                $hinhanh = new hinhanhbs();
                $hinhanh->MaSanPham = $danhsach[$i]['MaSanPham'];
                $dshinh = $hinhanh->GetList();
                echo " <li>
				 <div class='slider_hinhsp'><a href='index.php?do=chitietsanpham&msp={$danhsach[$i]['MaSanPham']}'>
					<img src='{$dshinh[0]['patch']}' width='220px' height='240px'/>
				 </a>
				 </div>
					
				 <div class='slider_thongtinsp'>
				 <h2 class='TenSP'>". $danhsach[$i]['TenSanPham']."</h2>
					
				 <table>
				 	
					<tr> <td><span class='thongtin_sp'>Chất liệu: </span></td><td>". $danhsach[$i]['TenChatLieu']."</td></tr>
					<tr> <td><span class='thongtin_sp'>Màu Sắc: </span></td><td>". $danhsach[$i]['MauSac']."</tr>
					<tr> <td><span class='thongtin_sp'>Kiểu dáng: </span></td><td>". $danhsach[$i]['KieuDang']."</td></tr>
					<tr> <td><span class='thongtin_sp'>Kích thước:</span></td><td>". $danhsach[$i]['KichThuoc']."</td></tr>
					<tr> <td><span class='thongtin_sp'> Xuất xứ:</span></td><td>". $danhsach[$i]['TenNhaSX']."</td></tr>
					<tr> <td><span class='thongtin_sp'> Giá: </td><td><span class='GiaBan'> " . number_format($danhsach[$i]['DonGia']) . " VNĐ</span></td>
				 </table>
				 
				 <p class='XemTiep'><a href='baiviet_chitiet_" . $danhsach[$i]['MaSanPham'] . "'>Chi tiết</a> " . $danhsach[$i]['LuotXem'] . " lượt xem</p>
				 </div>
				</li>";
            }
        ?>
    </ul>
</div>
